import { IDataWithError } from '../service-typing'

export interface ISendMobileVerifyCodeParam {
  countryCode: string
  mobile: string
  captchaValidate: string
}

export interface IVerifyCodeData {
  verifyCode: string
}

export interface ICheckMobileVerifyCodeParam {
  countryCode: string
  mobile: string
  verifyCode: string
}

export interface ICheckMobileVerifyCodeData {
  token: string
  verifyCodeCheck: boolean
}

export interface IClientService {
  sendMobileVerifyCode(param: ISendMobileVerifyCodeParam): Promise<IDataWithError<IVerifyCodeData>>
  checkMobileVerifyCode(param: ICheckMobileVerifyCodeParam): Promise<IDataWithError<ICheckMobileVerifyCodeData>>
}
